<?php include template("header");?>

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="signup">
    <div id="content" class="signup-box">
        <div class="box">
            
            <div class="box-content">
                <div class="head">
                <ul>
                <li><a class="email-trigger " href="/account/signup.php"><i></i><span></span>邮箱注册</a></li>
                <li class="current"><a class="mobile-trigger" href="/account/mobilesignup.php"><i></i><span></span>手机注册</a></li>
           	 	</ul>
                </div>
                <div class="sect">
                    <form id="signup-user-form" method="post" action="/account/mobilesignup.php" class="validator">
                        <input type="hidden" name="sms_id" id="sms_id_input" />
                        <p id="sss"></p>
                        <div class="field">
                            <label for="signup-password-confirm">手机号码</label>
                            <input <?php if($tmobile){?>value="<?php echo $tmobile; ?>"<?php } else { ?>value=""<?php }?> type="text" size="30" name="mobile" id="mobile-signup-input" class="f-input" require="true" datatype="require|mobile|ajax" url="<?php echo WEB_ROOT; ?>/ajax/validator.php" vname="mobilesignup" msg="请输入手机号|手机号码格式不正确|手机号码已经被注册或绑定" />
                  
                        </div>
                        <div class="field">
							 <label></label>
							 <INPUT class="sms-send-btn" name="mobile" value=免费获取短信验证码 type="button" onclick="check_btn();"> 
							 <span id="daojishi"></span>
						</div>
                        
                       	<div class="field">
                       		 <label for="mobile-signup-sms-verify-label">短信验证码</label>
                   			<input type="text" name="sms-verify-code" class="f-input" require="true" datatype="require" msg="请输入短信验证码" />
                       	</div>
 
                        <div class="field password">
                            <label for="signup-password">创建密码</label>
                            <input type="password" size="30" min="6" max="16" maxLength="16" name="password" id="signup-password" class="f-input" require="true" datatype="require|limit"  msg="请输入密码|请输入6-16位长密码"/>
                          
                        </div>
                        <div class="field password">
                            <label for="signup-password-confirm">确认密码</label>
                            <input type="password" size="30" name="password2" id="signup-password-confirm" class="f-input" require="true" datatype="require|compare" compare="signup-password" msg="请再次输入密码|两次输入密码不匹配" />
                        </div>

                        <div class="act">
                            <input type="submit" value="同意以下协议并注册" name="commit" id="signup-submit" class="formbutton"/>
                        	<br/><a href="http://www.9i139.com/about/terms.php" target="_blank" class="terms" >《手机风尚网用户协议》</a>
                        
                        </div>
                    </form>
                </div>
            </div>
            
        </div>
    </div>
    <div id="sidebar">
        <div class="sbox">
            <div class="sbox-top"></div>
            <div class="sbox-content">
                <div class="side-tip">
                    <h2>已有<?php echo $INI['system']['abbreviation']; ?>账户？</h2>
                    <p>请直接<a href="/account/login.php">登录</a>。</p>
                </div>
            </div>
            <div class="sbox-bottom"></div>
        </div>
        <div class="sbox">
		    <div class="sbox-top"></div>
		    <div class="sbox-content">
		        <div class="side-tip">
		           <h2>用合作网站账号登录</h2>
                   <?php if(option_yes('qzonelogin')){?>
					<p><a href="/thirdpart/qzone/index.php"><img src="/static/css/i/qq.gif" /></a></p>
                   <?php }?>
		           <?php if(option_yes('qqlogin')){?>
				   <p><a href="/thirdpart/qq/index.php"><img src="/static/css/i/qq.png" /></a></p>
				   <?php }?>
				   <?php if(option_yes('sinalogin')){?>
				   <p><a href="/thirdpart/sina/login.php"><img src="/static/css/i/sina_login.png" /></a></p>
				   <?php }?>
				   <?php if($INI['alipay']['alifast'] == 'Y'){?>
				   <p><a href="/alifast/auth_authorize.php"><img src="/static/css/i/btn_login_zfbkj.png" /></a></p>
				   <?php }?>
			    </div>
		    </div>
		    <div class="sbox-bottom"></div>
	     </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->
<script type="text/javascript">
function check_btn(){
	if(validator.check( $('#mobile-signup-input') , true))
		X.bindajax('sms','mobilesignupdialog','<?php echo $login_user_id; ?>');
}
function countdown(lefttime){
	$('.sms-send-btn').val('重新获取('+lefttime+')').attr('disabled', true);
	lefttime--;
	if(lefttime == 0){
		$('.sms-send-btn').val('免费获取短信验证码').attr('disabled', false);
		$('#daojishi').html('');
		return null;
	}
	$('#daojishi').html('已发送，60秒后可再次获取');
	setTimeout( 'countdown('+lefttime+')', 1000);
}



</script>


<?php include template("footer");?>



